import request from '@/utils/request';

export function getUser(params) {
    return request({
      url: '/ap/app/getInfo',
      method: 'get',
      params,
    })
}
  // 注册
  export function register(data) {
    return request({
      url: '/ap/app/register',
      method: 'post',
      data,
      headers: { showLoading :false}
    })
}
// 登录
export function login(data) {
    return request({
      url: '/ap/app/login',
      method: 'post',
      data,
      headers: { showLoading :false}
    })
}
// 验证码
export function code(params) {
    return request({
      url: '/ap/app/captcha',
      method: 'get',
      responseType: 'blob',
      params,
      headers: { showLoading :false}
    })
}
// 角色菜单
export function roleMenu(params) {
  return request({
    url: '/ap/app/roleMenu',
    method: 'get',
    params,
  })
}